package com.example.interviewrecorder.utils

import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager

/**
 * 隐藏键盘
 */
fun View.hideKeyboard(){
    val inputMethodManager=LyyActivityCollector.getCurrActivity().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
    inputMethodManager.hideSoftInputFromWindow(this.windowToken,0)
}